package com.azt.api.dto;

import java.util.List;

public class PurchaseModel {
    //最长的列长
    private Integer maxlength;

    //行列
    List<List<String>> contents;
    List<CellStat> cellStats;


    //标题名称
    List<String> titles;

    //匹配结果  0为未匹配上
    List<Integer> titleindex;

    //未匹配的 行列
    List<List<String>> nocontents;
    List<CellStat> noCellStats;

    //标题完美匹配
    private boolean titlePerfect;
    //内容完美匹配
    private boolean contentPerfect;

    //设备所在位置  对应的类目的id 1.设备名称,2.品牌,3型号,4单位,5数量6技术参数7单价
    Integer shebeiindex = -1;//1
    Integer pinpaiindex = -1;//2
    Integer xinghaoindex = -1;//3
    Integer danweiindex = -1;//4
    Integer shuliangindex = -1;//5
    Integer jishuindex = -1;//6
    Integer danjiaindex = -1;//7

    //设备对应的md5值
    List<String> shebeiscret;

    public List<List<String>> getContents() {
        return contents;
    }

    public void setContents(List<List<String>> contents) {
        this.contents = contents;
    }

    public List<String> getTitles() {
        return titles;
    }

    public void setTitles(List<String> titles) {
        this.titles = titles;
    }

    public List<Integer> getTitleindex() {
        return titleindex;
    }

    public void setTitleindex(List<Integer> titleindex) {
        this.titleindex = titleindex;
    }

    public Integer getMaxlength() {
        if (maxlength == null) {
            if (titles == null) {
                return contents.get(0).size();
            }
            return getTitles().size();
        }
        return maxlength;
    }

    public void setMaxlength(Integer maxlength) {
        this.maxlength = maxlength;
    }

    public boolean isTitlePerfect() {
        return titlePerfect;
    }

    public void setTitlePerfect(boolean titlePerfect) {
        this.titlePerfect = titlePerfect;
    }

    public List<List<String>> getNocontents() {
        return nocontents;
    }

    public void setNocontents(List<List<String>> nocontents) {
        this.nocontents = nocontents;
    }

    public boolean isContentPerfect() {
        return contentPerfect;
    }

    public void setContentPerfect(boolean contentPerfect) {
        this.contentPerfect = contentPerfect;
    }

    public Integer getShebeiindex() {
        return shebeiindex;
    }

    public void setShebeiindex(Integer shebeiindex) {
        this.shebeiindex = shebeiindex;
    }

    public List<String> getShebeiscret() {
        return shebeiscret;
    }

    public void setShebeiscret(List<String> shebeiscret) {
        this.shebeiscret = shebeiscret;
    }

    public Integer getPinpaiindex() {
        return pinpaiindex;
    }

    public void setPinpaiindex(Integer pinpaiindex) {
        this.pinpaiindex = pinpaiindex;
    }

    public Integer getXinghaoindex() {
        return xinghaoindex;
    }

    public void setXinghaoindex(Integer xinghaoindex) {
        this.xinghaoindex = xinghaoindex;
    }

    public Integer getDanweiindex() {
        return danweiindex;
    }

    public void setDanweiindex(Integer danweiindex) {
        this.danweiindex = danweiindex;
    }

    public Integer getShuliangindex() {
        return shuliangindex;
    }

    public void setShuliangindex(Integer shuliangindex) {
        this.shuliangindex = shuliangindex;
    }

    public Integer getJishuindex() {
        return jishuindex;
    }

    public void setJishuindex(Integer jishuindex) {
        this.jishuindex = jishuindex;
    }

    public Integer getDanjiaindex() {
        return danjiaindex;
    }

    public void setDanjiaindex(Integer danjiaindex) {
        this.danjiaindex = danjiaindex;
    }

    public List<CellStat> getCellStats() {
        return cellStats;
    }

    public void setCellStats(List<CellStat> cellStats) {
        this.cellStats = cellStats;
    }

    public List<CellStat> getNoCellStats() {
        return noCellStats;
    }

    public void setNoCellStats(List<CellStat> noCellStats) {
        this.noCellStats = noCellStats;
    }
}
